<?php 

namespace slinks\extensions\amf\orm;

/**
 * Adapts a Doctrine PersistentCollection to a PersistentCollectionProxy. 
 * @author Navid Mitchell
 *
 */
class PersistentCollectionAdapter implements \Zend_Amf_Parse_Adapter {
	
	/**
	 * @param $source the object to be adapted.
	 * @return the new object from the source object.
	 */
	public function adapt(&$source){
		$arg = $source;
		return new PersistentCollectionProxy($arg);
	}
	
}


